<?php
use Faker\Generator as Faker;

/** @var \Illuminate\Database\Eloquent\Factory $factory */
$factory->define(\App\Models\OpenWechat\WechatUser::class, function (Faker $faker) {
    $name = $faker->name;
    
    return [
        'authorizer_id'    => 0,
        'customer_id'      => 0,
        'openid'           => $faker->uuid,
        'name'             => $faker->name,
        'nickname'         => $faker->name,
        'nickname_unicode' => json_encode($name),
        'subscribe'        => \App\Models\OpenWechat\WechatUser::SUBSCRIBED,
    ];
});
